cmake_minimum_required(VERSION 3.18)
project(VideoSplitter)

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED True)

set (CMAKE_CXX_FLAGS "$ENV{CXXFLAGS} -DLINUX -DDEBUG -g -ggdb -std=c++11 -pthread -Wall -Werror")

set (CMAKE_INSTALL_PREFIX ${PROJECT_SOURCE_DIR})

find_package(PkgConfig REQUIRED)
pkg_search_module(OPENCV REQUIRED opencv4)
# MESSAGE(STATUS ${CMAKE_BINARY_DIR})

include_directories(${OPENCV_INCLUDE_DIRS})
include_directories(/usr/local/include)
include_directories(/usr/local/cuda/include)
include_directories(/usr/include/ffmpeg)
include_directories(./include)
include_directories(./include/lib_json)


add_subdirectory(src)
